package com.iteaj.iot.serial;

import com.fazecast.jSerialComm.SerialPortEvent;
import com.iteaj.iot.AbstractProtocol;

public class SerialEventProtocol extends AbstractProtocol<SerialMessage> {

    private SerialPortEvent event;
    private SerialConnectProperties connectProperties;

    protected SerialEventProtocol(SerialPortEvent event, SerialConnectProperties connectProperties) {
        this.event = event;
        this.connectProperties = connectProperties;
    }

    @Override
    public AbstractProtocol buildRequestMessage() {
        return null;
    }

    @Override
    public AbstractProtocol buildResponseMessage() {
        return null;
    }

    @Override
    public SerialProtocolType protocolType() {
        return SerialProtocolType.Event;
    }

    public SerialPortEvent getEvent() {
        return event;
    }

    public SerialConnectProperties getConnectProperties() {
        return connectProperties;
    }
}
